<?php
    include_once("template/DataProvider.php");
    if(isset($_REQUEST['id']) && $_SESSION['MaLoaiTaiKhoan'])
    {
        $maCM = $_REQUEST['id'];
        $query = "DELETE FROM `comment` WHERE `MaComment` = '".$maCM."' ";
        DataProvider::executeQuery($query);
        DataProvider::ChangeURL($_SERVER['HTTP_REFERER']);    
    }
    else DataProvider::ChangeURL('trangchu.php?act=1');
            

?>